package com.oauth.home.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.user.client.ui.RootLayoutPanel;
import com.oauth.components.client.ui.CommonResources;
import com.oauth.layout.client.StandardLayout;

public class HomeEntryPoint implements EntryPoint {

	private static HomeEntryPointUiBinder uiBinder = GWT.create(HomeEntryPointUiBinder.class);

	interface HomeEntryPointUiBinder extends UiBinder<StandardLayout, HomeEntryPoint> {
	}

	public void onModuleLoad() {
		final StandardLayout p = uiBinder.createAndBindUi(this);
		CommonResources.INSTANCE.css().ensureInjected();
		p.initMyApplications();
		RootLayoutPanel rp = RootLayoutPanel.get();
		rp.add(p);
		// RootPanel.get().add(dockPanel);
	}

}